package com.chunayev.numerology.gui.action;

import java.awt.event.KeyEvent;
import java.util.Set;

import com.chunayev.numerology.domain.PositionSummary;


/**
 * @author Sergey Chunayev
 */
public class DeleteNameFromSetAction extends AbstractTokenDeleteFromSetAction {
    
    /**
     * 
     */
    private static final long serialVersionUID = 8111205003417560063L;
    
    /**
     * @param keyName
     * @param mnemonicKey
     */
    public DeleteNameFromSetAction() {
        super("name", KeyEvent.VK_N);
    }
    
    public DeleteNameFromSetAction(final SummaryTokenChangeNotifier notifier) {
        this();
        setSummaryTokenChangeNotifier(notifier);
    }
    
    /*
     * (non-Javadoc)
     * @see
     * com.chunayev.numerology.gui.action.ModifiedSetProvider#getModifiedSet(chunayev
     * .numerology.domain.PositionSummary)
     */
    @Override
    public Set<String> getModifiedSet(final PositionSummary positionSummary) {
        return positionSummary.getNames();
    }
    
}
